package com.tju.resource.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 物料耗材关联表
 * @TableName tb_matl_consumables
 */
@TableName(value ="tb_matl_consumables")
@Data
public class TbMatlConsumables implements Serializable {
    /**
     * 物料跟耗材关联表id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 物料id
     */
    private Long matlId;

    /**
     * 耗材id
     */
    private Long consumablesId;
    /**
     * 耗材对象
     */
    @TableField(exist = false)
    private TbConsumables consumables;

    /**
     * 消耗数量
     */
    private Integer qty;

    /**
     * 发料状态(0:未发料1:已发料)
     */
    private Integer issuingStatus;
    /**
     * 比数
     */
    private  Integer count;
    /**
     * 0:耗材分配 1:包装分配
     */
    private Integer type;

}